{% extends 'home/base.html' %}
{% block title %}STOKING{% endblock %}
{% block heading %}STOKING{% endblock %}
{% block body %}
<div class="container">
  <form action="/stock/" method="POST">{% csrf_token %}
      <div class="input-field col s12">
          <input  type="search" name="target_item" placeholder="默认为全部药品，输入药品关键词以过滤">
          <button type="submit" class="btn">fliter</button>
      </div>
  </form>
 <form action="/stock/do_view_stock/" method="POST">{% csrf_token %}
    <div class="input-field col s12">
      <select name="item_selected" id="item_selected" class="validate" required>
        {% for items in item %}
          <option value='{{items.id}}'> 产品名称：{{items.item_name}}----制造商：{{items.manufacturer}}</option>
        {% endfor %}
      </select>
      <label for="item_selected">item</label>
      <!--<input type="text" id="autocomplete-patient" class="autocomplete-patient" name="patient">
      <label for="autocomplete-patient">Patient</label>-->
    </div>
    <button type="submit" class="btn" href="/stock/do_view_stock/">View stocks</button>
  </form>
</div>
{% endblock %}